const path = require('path')

const resolve = dir => {// 退到项目根目录
  return path.join(__dirname, '../../..', dir);
}

module.exports = {
  imageSize: {
    headImg: [200, 200],// 头像
    worksImg: [1280, 960],// 作品图片、门店图片
    thumbImg: [(1280 / 4.5), (960 / 4.5)]// 缩略图
  },
  path: {
    temPath: resolve('static_temp'),

    /**开发环境 */
    minPath: resolve('static'),
    thumbPath: resolve('static/thumbnail'),

    /**生产环境 */
    // minPath: resolve('static_pic'),
    // thumbPath: resolve('static_pic/thumbnail'),
  }
}